It's only supposed to show if we have a battery, and hooking into
the power system is the easiest way of making that happen.
https://bugzilla.gnome.org/show_bug.cgi?id=705845
this._indicators.add_child(this._network.indicators);
this._indicators.add_child(this._bluetooth.indicators);
- this._indicators.add_child(this._power.indicators);
this._indicators.add_child(this._volume.indicators);
- this._indicators.add_child(this._system.indicators);
+ this._indicators.add_child(this._power.indicators);
this._indicators.add_child(new St.Label({ text: '\u25BE',
y_expand: true,
y_align: Clutter.ActorAlign.CENTER }));
if (icon) {
let gicon = Gio.icon_new_for_string(icon);
this._indicator.gicon = gicon;
- this._indicator.show();
this._item.icon.gicon = gicon;
} else {
- this._indicator.hide();
+ // If there's no battery, then we use the power icon.
+ this._indicator.icon_name = 'system-shutdown-symbolic';
}
},
_init: function() {
this.parent();
- this._indicator = this.addIndicator(new Gio.ThemedIcon({ name: 'system-shutdown-symbolic' }));
-
this._screenSaverSettings = new Gio.Settings({ schema: SCREENSAVER_SCHEMA });
this._lockdownSettings = new Gio.Settings({ schema: LOCKDOWN_SCHEMA });
this._privacySettings = new Gio.Settings({ schema: PRIVACY_SCHEMA });